<template>
  <div class="box">
    <h3>a</h3>
    <button @click="btn">传值</button>
  </div>
</template>

<script>
export default {
  methods: {
    btn() {
      this.$bus.$emit('atob', Math.random() * 100)
    }
  }
}
</script>

<style lang="scss" scoped>
.box {
  width: 200px;
  height: 200px;
  border: 5px solid pink;
}
</style>
